import {defineStore} from "pinia";

type State = {
    score: {
        [key: string]: {
            score: number
        }[]
    }
}

const useScoreStore = defineStore("score", {
    state: (): State => ({
        score: {
        }
    }),
    actions: {
        setScore(state: State["score"]) {
            this.score = state;
        },
        getScore() {
            return this.score
        }
    }
})

export default useScoreStore